<?php // include_partial('defaultViewer/index') ?>

<?php 
use_helper('Pagination');    
$util = new Util();
$charset = $util->getCharset();
if(!isset($hide))
	$hide = array();		
?>

<?php $accion='index' ?>
<?php $routeName = sfContext::getInstance()->getRouting()->getCurrentInternalUri(false) ?>



<h1><?php echo __('List of ') . $objDef->labelPlural?></h1>

<?php include_partial('search/searchBar',array( 'className' => $className, 'moduleRef' => $module, 'actionRef' => 'index'))?>
<?php if(!is_null($pager)):?>
	<?php $pager->getPage()?>
	<?php echo pager_navigation($pager, $routeName.'?className='.$className) ?>
<?php endif;?>
<?php $addButton = !$objDef->isReadOnly;?>
<?php if(!is_null($pager))	$records = $pager->getResults(); ?>
<?php echo $objDef->renderListTable($records, $module, $hide, false, $addButton)?>

